<?php
header("Content-type: text/html; charset=gb2312");
require_once 'inc/config.inc.php';
require_once 'library/global.func.php';
$logUin = check($_GET['logUin']);
$acceptUin = check($_GET['acceptUin']);
$param = array ($logUin,$acceptUin,true);
$result = CallSp($conn, DB_NAME_GRADE.'.sp_getSwapPrice', $param);
unset ($param);
if (is_object($result)) {
	$arrRow = $result->FetchRow();
	$applyGrade = $arrRow[0];
	$swapGrade = $arrRow[1];
	$price = $arrRow[2];
}
echo '[{"applygrade":'.$applyGrade.',"swapgrade":'.$swapGrade.',"price":'.$price.'}];';
?>